<layout name='Layout/layout_page' />

	<ol class="breadcrumb">
		<li><a href="<{:U('Company/index')}>">企业管理</a></li>
      	<li class="active">编辑</li>
    </ol>

	<form id="ajaxForm" action="<{:U('Company/update')}>" method="post" class="form-horizontal form-validata">

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">企业名称：</label>
			<div class="col-md-11">
				<input type="text"
                class="form-control"
				name="name"
				id="name"
				value="<{$list['name']}>" 
				data-rule-required="true"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">简短描述：</label>
			<div class="col-md-11">
				<input type="text"
                class="form-control"
				name="short"
				id="short"
				value="<{$list['short']}>" 
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">企业性质</label>
			<div class="col-md-11">
				<input type="text"
                class="form-control"
				name="xingzhi"
				id="xingzhi"
				value="<{$list['xingzhi']}>" 
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">所属行业</label>
			<div class="col-md-11">
				<input type="text"
                class="form-control"
				name="trade"
				id="trade"
				value="<{$list['trade']}>" 
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">员工人数</label>
			<div class="col-md-11">
				<input type="text"
                class="form-control"
				name="yuangong"
				id="yuangong"
				value="<{$list['yuangong']}>" 
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">厂区地址</label>
			<div class="col-md-11">
				<input type="text"
                class="form-control"
				name="address"
				id="address"
				value="<{$list['address']}>" 
				/>
			</div>
		</div>		

		<div class="form-group">			
			<div class="col-md-11 col-md-offset-1">
				<div id="picBox">
					<volist name="picname" id="vo">
					<li><img src="<{$vo}>"><span class="glyphicon glyphicon-remove"></span><input type="hidden" name="picname[]" value="<{$vo}>" /></li>
					</volist>
				</div>
			</div>
			<script type="text/javascript">
			$(function(){
				$("#picBox").on('click','span',function(){
					$(this).parent().remove();
				})
			})
			</script>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label" for="picname">企业照片</label>
			<div class="col-md-11">				
				<input type="button" value="上传" class="btn btn-default btn-sm" onclick="uploadImage( '<{:U('Admin/Upload/image')}>' , 'picBox',3)"/>				
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">公司简介：</label>
			<div class="col-md-11">
				<textarea name="intr" class="form-control areatext" style="height:200px" data-rule-required="true"><{$list['intr']}></textarea>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">排序：</label>
			<div class="col-md-2">
				<input type="text"
                class="form-control"
				name="sort"
				id="sort"
				data-rule-required="true"
				data-rule-number="true"
				value = "<{$list['sort']}>"
				/>
				<p>数字越小越靠前</p>
			</div>
		</div>
	
		<div class="form-group">
			<div class="col-md-11 col-sm-offset-1">
				<button type="submit" class="btn btn-info">编辑</button>
			</div>
		</div>
		<input type="hidden" name="id" value="<{$list['id']}>" />
	</form>


<input type="hidden" id="menu_action" value="job" />